package com.qunar.paydata.platform.service.impl.worksheet;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.qunar.paydata.platform.entity.worksheet.WorksheetBase;
import com.qunar.paydata.platform.mapper.worksheet.WorksheetBaseMapper;
import com.qunar.paydata.platform.service.worksheet.WorksheetService;

@Service("worksheetService")
public class WorksheetServiceImpl implements WorksheetService{

	@Autowired
	private WorksheetBaseMapper  worksheetBaseMapper;
	
	/**
	 * 实体数据录入
	 */
	@Transactional
	public int insert(WorksheetBase worksheetBase) {
		
		return worksheetBaseMapper.insert(worksheetBase);
	}
	/**
	 * 根据查询条件查询基本工单列表
	 */
	@Transactional
	public List<WorksheetBase> selectByCondition(
			Map<String, Object> conditionMap) {
		return worksheetBaseMapper.selectByCondition(conditionMap);
	}
	@Transactional
	public int deleteByPrimaryKey(Integer wsId) {
		return worksheetBaseMapper.deleteByPrimaryKey(wsId);
	}
	@Transactional
	public WorksheetBase selectByPrimaryKey(Integer wsId) {
		return worksheetBaseMapper.selectByPrimaryKey(wsId);
	}
	@Transactional
	public int updateByPrimaryKeySelective(WorksheetBase worksheetBase) {
		return worksheetBaseMapper.updateByPrimaryKeySelective(worksheetBase);
	}
	@Transactional
	public int deleteListByCondition(Map<String, Object> conditionMap) {
		return worksheetBaseMapper.deleteListByCondition(conditionMap);
	}
	@Transactional
	public int selectChartByCondition(Map<String, Object> conditionMap) {
		return worksheetBaseMapper.selectChartByCondition(conditionMap);
	}
}
